namespace ASPNET
{
    using ASPNET.StarterKit.IssueTracker.BusinessLogicLayer;
    using System;
    using System.Diagnostics;
    using System.Web.UI;

    public class Default : Page
    {
        private object designerPlaceholderDeclaration;

        public Default()
        {
            base.Load += new EventHandler(this.Page_Load);
            base.Init += new EventHandler(this.Page_Init);
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
        }

        private void Page_Init(object sender, EventArgs e)
        {
            this.InitializeComponent();
        }

        public void Page_Load(object sender, EventArgs e)
        {
            if (Globals.IsMobileDevice)
            {
                this.Response.Redirect(string.Format("{0}/Issues/IssueList.aspx", Globals.MobileDefaultUrl));
            }
            else
            {
                this.Response.Redirect("~/Issues/IssueList.aspx");
            }
        }
    }
}

